package com.example.kt_base.s4

//TODO 70.Kotlin语言的定义类与field关键字

class KtBase70{
    var name="Derry"
        get() = field
        set(value){
            field=value
        }

    var info="derry is success"
        get()=field.capitalize()
        set(value) {
            field="【$value】"
        }




}
fun main() {

    println(KtBase70().info)

}
